<?php 
class EducationModel extends BaseModel {
	public function add_edu($data) {
		$result = $this->add($data);
		if($result){
			return true;
		}else{
			return false;
		}
		
	}
	public function select_edu(){
		$result = $this->where(array('is_del'=>0))->select();
		return $result;

	}
	public function get_edu($eid) {
		$result = $this->where(array('eid'=>$eid))->find();
		return $result;
		
	}

	public function edit_edu($eid,$data) {
		$result = $this->where(array('eid'=>$eid))->save($data);
		
		if($result){
			return true;
		}else{
			return false;
		}
		
	}

	public function del_edu($id){
		$data['is_del']=1;
		$da = $this->where(array('eid'=>$id))->save($data);
		if($da){
			return true;
		}else{
			return false;
		}
	}
	
}
?>